package com.jy.rhin.model.header;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import lombok.Data;

/**
 * @Author 姚俊
 * @Date 2023/2/6 9:06
 * @Description 联系人
 */
@Data
public class Participant {
    //联系人电话号码
    @XPath(path = "/telecom/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_010_00, nullable = true))
    String telecom;
    //联系人姓名
    @XPath(path = "/associatedPerson/name/text()", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_039_00, nullable = true))
    String name;

    @XPath(path = "/associatedPerson/birthTime/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_005_01, nullable = true))
    String birthTime;

    //居委会名称
    @XPath(path = "/scopingOrganization/name/text()", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_10_023_00, nullable = true))
    String scopingOrgName;
}
